//
//  PageViewStyle.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/2/26.
//  Copyright © 2020 tao Tao. All rights reserved.
//

import UIKit

struct PageViewStyle {
    // titleView
    var titleViewY: CGFloat = 0
    var titleViewHeight: CGFloat = 44.0
    var titleNormalColor: UIColor = .black
    var titleSelectedColor: UIColor = .mainColor
    var titleFont: UIFont = UIFont.systemFont(ofSize: 15)
    var titleViewBackgroundColor: UIColor = .white
    var titleMargin: CGFloat = 0
    var titleViewSelectedColor: UIColor = .clear
    var titleViewType: PageTitleViewType = .normal
     
    // titleView滑动
    var isTitleViewScrollEnabled: Bool = false
    
    // titleView下划线
    var isShowUnderline: Bool = false
    var underlineColor: UIColor = .blue
    var underlineHeight: CGFloat = 2.0
    var underlineRadius: CGFloat = 1.0
    
    // 缩放
    var isTitleScaleEnabled: Bool = false
    var titleMaximumScaleFactor: CGFloat = 1.2
    
    // contentView
    var isContentViewScrollEnabled: Bool = false
    var contentViewColor: UIColor = .white
}

enum PageTitleViewType {
    case normal
    case left
}
